///订货单设置
class OrderSetInfo {
  String? id;
  String? order;
  String? orderTime;
  String? orderPlayerName;
  String? goods;
  String? level;
  int? num;
  double? price;
  double? total;

  OrderSetInfo({
    this.id,
    this.order,
    this.orderTime,
    this.orderPlayerName,
    this.goods,
    this.level,
    this.num,
    this.price,
    this.total,
  });

  String GetNumStr() {
    return num!.toString();
  }

  OrderSetInfo.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    order = json['order'];
    orderTime = json['orderTime'];
    orderPlayerName = json['orderPlayerName'];
    goods = json['goods'];
    level = json['level'];
    num = json['num'];
    price = json['price'];
    total = json['total'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['id'] = id;
    data['order'] = order;
    data['orderTime'] = orderTime;
    data['orderPlayerName'] = orderPlayerName;
    data['goods'] = goods;
    data['level'] = level;
    data['num'] = num;
    data['price'] = price;
    data['total'] = total;
    return data;
  }
}
